package com.xcx.robot.mirai.factory.facade;

import cn.hutool.http.HttpUtil;
import com.alibaba.fastjson.JSONObject;
import com.xcx.robot.mirai.entity.JX3API;
import com.xcx.robot.mirai.factory.BaseFacade;
import com.xcx.robot.mirai.jxapi.Result;
import com.xcx.robot.mirai.jxapi.ResultData;
import com.xcx.robot.mirai.key.KeyWord;
import com.xcx.robot.util.LunarCalendarFestivalUtils;
import net.mamoe.mirai.contact.Contact;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author: 邢晨旭
 * @Date: 2021/6/22 09:33
 * @Description:
 */
//@Service
//public class PriceFacade implements BaseFacade {
//    public KeyWord keyWord = KeyWord.PRICE;
//
//    @Resource
//    LunarCalendarFestivalUtils utils;
//
//    @Override
//    public void execute(Contact sender, Contact receiver, String content) {
//        String daily = HttpUtil.get(JX3API.PRICE);
//        Result result = JSONObject.parseObject(daily, Result.class);
//        if (result.getCode() == 200) {
//            ResultData data = result.getData();
//
//        }
//
//    }
//
//    @Override
//    public KeyWord keyWord() {
//        return keyWord;
//    }
//}
